#include <stdio.h>
#include <string.h>
#define NAME_MAX_LEN 40
#define AUTHOR_MAX_LEN 40
char *s_gets(char *, unsigned int);

struct book {
    char name[NAME_MAX_LEN];
    char author[AUTHOR_MAX_LEN];
    float value;
};

int main() {
    struct book library;
    s_gets(library.name, NAME_MAX_LEN);
    s_gets(library.author, AUTHOR_MAX_LEN);
    scanf("%f", &library.value);
    printf("%s:%s   %.2f", library.name, library.author, library.value);
}

char *s_gets(char *st, unsigned int n) {
    char *ret_val;
    char *find;
    ret_val = fgets(st, n, stdin);
    if (ret_val) {
        find = strchr(st, '\n');
        if (find) {
            *find = '\0';
        } else {
            while (getchar() != '\n') {
                continue;
            }
        }
    }
    return ret_val;
}